<script setup>

</script>

<template>
  <a href="/sign">
    <span style="--i: 1"></span>
    <span style="--i: 2"></span>
    <span style="--i: 3"></span>
    <span style="--i: 4"></span>
    {{ $t("login") }}
  </a>
</template>

<style scoped>
a {
  position: relative;
  display: block;
  padding: 20px 40px;
  overflow: hidden;
  color: var(--clr);
  border-radius: 2px;
  transition: all 0.5s;
  text-decoration: none;
  font-weight: 600;
}

a:hover {
  background-color: var(--clr);
  color: white;
  box-shadow: 0 0 5px var(--clr), 0 0 25px var(--clr), 0 0 50px var(--clr);
}

a>span {
  position: absolute;
  display: block;
  background: linear-gradient(calc(var(--i) * 90deg), transparent, var(--clr));
}

.fifth-page a>span:nth-child(1) {
  top: 0;
  left: 0;
  width: 100%;
  height: 2px;
  animation: move1 1s linear infinite;
}

@keyframes move1 {
  0% {
    left: -100%;
  }

  50%,
  100% {
    left: 100%;
  }
}

.fifth-page a>span:nth-child(2) {
  top: 0;
  right: 0;
  width: 2px;
  height: 100%;
  animation: move2 1s linear infinite;
  animation-delay: 0.25s;
}

@keyframes move2 {
  0% {
    top: -100%;
  }

  50%,
  100% {
    top: 100%;
  }
}

.fifth-page a>span:nth-child(3) {
  bottom: 0;
  right: 0;
  width: 100%;
  height: 2px;
  animation: move3 1s linear infinite;
  animation-delay: 0.5s;
}

@keyframes move3 {
  0% {
    right: -100%;
  }

  50%,
  100% {
    right: 100%;
  }
}

.fifth-page a>span:nth-child(4) {
  top: 0;
  left: 0;
  width: 2px;
  height: 100%;
  animation: move4 1s linear infinite;
  animation-delay: 0.75s;
}

@keyframes move4 {
  0% {
    top: 100%;
  }

  50%,
  100% {
    top: -100%;
  }
}
</style>